





thien_coco_project_howto()
{
/*

win32 project
01. after generating default project, we should create new folder under "Classes" directory
02. create our own source "AppDelegate.cpp/h HelloWorldScene.cpp "
03. about resources: create new folder under default Resources folder, then copy all resources to that folder
04. Add source AppMacros.h (can be found in HelloCpp samples folder) to our source directory, to support
    design resolution
05. Add source {VisibleRect.cpp VisibleRect.h} to our source to support visible Rect ....
06. In main.cpp, change AppDelegate to our AppDelegate: eg:#include "asterdroids\AppDelegate.h" 
  
--> sandbox: E:\DEV\all_checkout\thtnstandardcoco
--> repo: https://thtngamecoco.googlecode.com/svn/trunk/thtnstandardcoco
*/
  
  
  
  
}


add_resource_folder()
{
  //modify AppDelegate.cpp

  #include "AppMacros.h"
  #include <vector>
  #include <string>
  using namespace std;

	CCSize frameSize = pEGLView->getFrameSize();
	pEGLView->setDesignResolutionSize(designResolutionSize.width, designResolutionSize.height, kResolutionShowAll);
		
  vector<string> searchPath;
  if (frameSize.height > mediumResource.size.height)
  {
    searchPath.push_back(largeResource.directory);
  }
  else
  {
    searchPath.push_back(smallResource.directory);
  }
  // set searching path
  CCFileUtils::sharedFileUtils()->setSearchPaths(searchPath);

}

touch_processing()
{
  
    virtual void ccTouchesBegan(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
    virtual void ccTouchesMoved(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
    virtual void ccTouchesEnded(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);
    virtual void ccTouchesCancelled(cocos2d::CCSet *pTouches, cocos2d::CCEvent *pEvent);

  
  
  
}

play_background_music()
{
#include "SimpleAudioEngine.h"

using namespace CocosDenshion;

bool HelloWorld::init()
{....
  
		SimpleAudioEngine::sharedEngine()->playBackgroundMusic("Assets\\Audio\\background.wav", true);//????

  
}

}